package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class ActivityRuleDto extends BaseDto{

    @NotNull(message = "缺少活动id")
    @ApiModelProperty(value = "所属活动优惠的规则")
    private Integer activityId;

    @NotNull(message = "缺少作用对象")
    @ApiModelProperty(value = "作用对象")
    private Integer target;

    @ApiModelProperty(value = "用户组Id")
    private Integer groupId;

    @NotNull(message = "缺少优先级")
    @ApiModelProperty(value = "优先级")
    private Integer orderNo;

    @Valid
    @ApiModelProperty(value = "参数")
    private List<ActivityRuleInfoDto> ruleInfoDtoList;

}
